package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Outreach;
import com.ruoyi.system.mapper.OutreachMapper;
import com.ruoyi.system.service.IOutreachService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * app外外链设置Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-30
 */
@Service
public class OutreachServiceImpl implements IOutreachService
{
    @Autowired
    private OutreachMapper outreachMapper;

    /**
     * 查询app外外链设置
     *
     * @param id app外外链设置主键
     * @return app外外链设置
     */
    @Override
    public Outreach selectOutreachById(Long id)
    {
        return outreachMapper.selectOutreachById(id);
    }

    /**
     * 查询app外外链设置列表
     *
     * @param outreach app外外链设置
     * @return app外外链设置
     */
    @Override
    public List<Outreach> selectOutreachList(Outreach outreach)
    {
        return outreachMapper.selectOutreachList(outreach);
    }

    /**
     * 新增app外外链设置
     *
     * @param outreach app外外链设置
     * @return 结果
     */
    @Override
    public int insertOutreach(Outreach outreach)
    {
        return outreachMapper.insertOutreach(outreach);
    }

    /**
     * 修改app外外链设置
     *
     * @param outreach app外外链设置
     * @return 结果
     */
    @Override
    public int updateOutreach(Outreach outreach)
    {
        return outreachMapper.updateOutreach(outreach);
    }

    /**
     * 批量删除app外外链设置
     *
     * @param ids 需要删除的app外外链设置主键
     * @return 结果
     */
    @Override
    public int deleteOutreachByIds(Long[] ids)
    {
        return outreachMapper.deleteOutreachByIds(ids);
    }

    /**
     * 删除app外外链设置信息
     *
     * @param id app外外链设置主键
     * @return 结果
     */
    @Override
    public int deleteOutreachById(Long id)
    {
        return outreachMapper.deleteOutreachById(id);
    }
}
